package com.central.modules.sys.model;

import com.central.common.validator.group.AddGroup;
import com.central.common.validator.group.DefaultGroup;
import com.central.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

@Data
public class AddSysDictDataRequest implements Serializable {

    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    private Long id;


    @NotNull(message = "{dictTypeId.require}", groups = DefaultGroup.class)
    private Long dictTypeId;//字典类型 1_sys_user_sex

    @NotBlank(message = "{dictLabel.require}", groups = DefaultGroup.class)
    private String dictLabel;//字典标签 男

    @NotBlank(message = "{dictValue.require}", groups = DefaultGroup.class)
    private String dictValue;//字典键值 0

    @NotNull(message = "{dictSort.require}", groups = DefaultGroup.class)
    private Integer dictSort;//排序 1

    private String remark;//备注


}
